// 设置轮播图的偏移量

    var panel_li01 = document.getElementsByClassName("s-panel-li01")[0];
    var panel_li02 = document.getElementsByClassName("s-panel-li02")[0];
    var s_goods_big = document.getElementsByClassName("s-goods-big")[0];

    panel_li01.onclick = function () {
        s_goods_big.style.left = 0;
        a(panel_li01, panel_li02);


    };
    panel_li02.onclick = function () {
        s_goods_big.style.left = -1170 + "px";
        a(panel_li02, panel_li01);
    };

    // 当点击时改变轮播图下面按钮的格式
    function a(a, b) {
        a.style.border = "1px solid red";
        a.style.background = "white";
        a.style.color = "red";
        b.style.border = "1px solid gray";
        b.style.background = "#f5f5f5";
        b.style.color = "black";
    }
